package com.zhuss.black.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.black.black.DetailBlackAppendVo;
import com.zhuss.black.db.dao.gen.BlackAppendMapper;
import com.zhuss.black.db.entity.BlackAppend;

@Mapper
public interface BlackAppendDao extends BlackAppendMapper {
	
	void create(BlackAppend record);
	
	void delete(BlackAppend record);
	
	DetailBlackAppendVo getByType(@Param("type") Integer type, @Param("blackId") Long blackId, @Param("creatorId") Long creatorId);
	
	List<DetailBlackAppendVo> listByType(@Param("type") Integer type, @Param("blackId") Long blackId, @Param("creatorId") Long creatorId);
	
	List<BlackAppend> listAll(@Param("area") Integer area);
	
	DetailBlackAppendVo detail(@Param("blackAppendId") Long blackAppendId);
}